#pragma once

#include <QDialog>
#include "Protocol.h"

namespace Ui {
    class RivalWindow;
}

// 对手列表窗口
class RivalWindow: public QDialog {
    Q_OBJECT

    signals: void UM_GET_RIVAL_NAME(const char*);

    private: Ui::RivalWindow* ui;   // 界面

    public: explicit RivalWindow(QWidget*);
    public: ~RivalWindow();
    private slots: void on_buttonCancel_clicked();
    private slots: void on_buttonOK_clicked();
    public: void setUsernameList(char(*)[GomokuProtocol::USERNAME_BUF_LEN]);
};
